package com.itheima.stock.mapper;

import com.itheima.stock.pojo.StockOuterMarketIndexInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Entity com.itheima.stock.pojo.StockOuterMarketIndexInfo
 */
public interface StockOuterMarketIndexInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockOuterMarketIndexInfo record);

    int insertSelective(StockOuterMarketIndexInfo record);

    StockOuterMarketIndexInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockOuterMarketIndexInfo record);

    int updateByPrimaryKey(StockOuterMarketIndexInfo record);


    /**
     * 外盘指数
     * 外盘指数行情数据查询 根据时间取前4
     * @return
     */
    List<Map> getExternalIndex(@Param("ids") List<String> outerIds, @Param("timePoint") Date timePoint);
}
